package com.zl.feign;

import com.zl.feign.hystrix.CustomerFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zl
 * @date 2023/3/20
 * @apiNote
 */

/**
 * fallback = CustomerFeign.class  这里需要指定熔断后走哪个类
 */
@FeignClient(value = "rent-car-service",fallback = CustomerFeignHystrix.class)
public interface CustomerFeign {

    @GetMapping("/rent")
    public String rent();

}
